<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Jialeo\LaravelSchemaExtend\Schema;

class AlertNicknameToFeishuCallingCardUsers extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::table('feishu_calling_card_users', function (Blueprint $table) {
            $table->string('nickName', 32)->default('')->comment('昵称');
            $table->string('mobile', 20)->default('')->comment('手机号');
            $table->string('headImage', 255)->default('')->comment('头像');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::table('feishu_calling_card_users', function (Blueprint $table) {
            $table->dropColumn('nickName');
            $table->dropColumn('mobile');
            $table->dropColumn('headImage');
        });
    }
}
